-- GENERATED SPELL FOR [Severed Druid] --


function spell0_3799(pUnit, Event) --@Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(1430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3799', 12000, 1)
end

function spell1_3799(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3799', 2000, 1)
end

function Sorts_3799(pUnit, Event)
local choix_sorts_3799 = math.random(0, 1)
if choix_sorts_3799 == 0 then
pUnit:RegisterEvent('spell0_3799', 1, 1)
end
if choix_sorts_3799 == 1 then
pUnit:RegisterEvent('spell1_3799', 1, 1)
end
end

function mob3799_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3799', math.random(1500, 3000), 1)
end

function mob3799_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3799_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3799_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3799, 1, 'mob3799_Action')
RegisterUnitEvent(3799, 2, 'mob3799_Leave')
RegisterUnitEvent(3799, 3, 'mob3799_Kill')
RegisterUnitEvent(3799, 4, 'mob3799_Die')
